package homework3;

public class Test {
    public static void main(String[] args) {

        Student stu1 = new Student("小明", 18, Sex.BOY);
        Student stu2 = new Student("小红", 19, Sex.GIRL);

        method(Sex.GIRL);
    }

    private static void method(Sex sex) {
        switch (sex){
            case BOY :
                System.out.println("这是一个男生");
                break;
            case GIRL:
                System.out.println("这是一个女生");
                break;
        }
    }
}
